import Promise from "../promise";

let promise = Promise.resolve({name: "zhangsan", age: 28});
promise.then((resolveData) => {
    console.log("then执行成功:", resolveData);
}, (rejectData) => {
    console.log("then执行失败:", rejectData);
});

let promise2 = Promise.reject({name: "lisi", age: 29});
promise2.then((resolveData) => {
    console.log("then执行成功:", resolveData);
}, (rejectData) => {
    console.log("then执行失败:", rejectData);
});

export {}
